﻿@model XSTDZ.ERP.Application.DataContracts.ProductInBillDto
@using XSTDZ.ERP.Infrastructure.Extentions
@{
    ViewBag.Title = " - 查看入库单";
}
@section header{
     <link href="@Url.Content("~/Content/Controls.css")" rel="stylesheet" type="text/css" />
     <link href="@Url.Content("~/Content/Form.css")" rel="stylesheet" type="text/css" />
}

<div class="wp100">
@using (Html.BeginForm()) {
    @Html.ValidationSummary(true)
    <table class="formtable">
    <thead>
        <tr>
            <th colspan="4">@* <h2>新增入库单</h2>*@
            <div id="toptoolbar"></div>
            </th>
        </tr>
    </thead>
    <tr>
        <td class="title"> @Html.LabelFor(model => model.ProductInBillNo)</td>
        <td> @Html.TextBoxFor(model => model.ProductInBillNo, new { @class = "text disablebg", @readonly = "readonly" })
        @Html.ValidationMessageFor(model => model.ProductInBillNo)
         <input type="hidden" value="@Model.ID" id="hidbillId" name="hidbillId" />
          @Html.HiddenFor(model => model.ID)
           @Html.HiddenFor(model => model.BillState)
        </td>

        <td class="title">@Html.LabelFor(model => model.ProductInDate)</td>
        <td>  @Html.TextBoxFor(model => model.ProductInDate, new { @class = "text disablebg", @readonly = "readonly" })
         <input type="hidden" value="@Model.ProductInDate" id="ProductInDateVal" name="ProductInDateVal" />
            @Html.ValidationMessageFor(model => model.ProductInDate)
         </td>
  </tr>


    <tr>
           <td class="title">仓库名称：</td>
        <td>      @Html.TextBoxFor(model => model.StorehouseName, new { @class = "text disablebg", @readonly = "readonly" })
         @Html.HiddenFor(model => model.StorehouseID)
            @Html.ValidationMessageFor(model => model.StorehouseName)
         </td>
           <td class="title">员工名称：</td>
        <td>   
         @Html.TextBoxFor(model => model.EmployeeName, new { @class = "text disablebg", @readonly = "readonly" })
         @Html.HiddenFor(model => model.EmployeeID)
         @Html.ValidationMessageFor(model => model.EmployeeName)
         </td>
    </tr>

     <tr>
         <td class="title">@Html.LabelFor(model => model.SourceOrgName)</td>
        <td>  @Html.TextBoxFor(model => model.SourceOrgName, new { @class = "text disablebg", @readonly = "readonly" })
             @Html.HiddenFor(model => model.SourceOrgID)
            @Html.ValidationMessageFor(model => model.SourceOrgName)
         </td>
           @* <td class="title">@Html.LabelFor(model => model.SenderName)</td>
        <td>  @Html.TextBoxFor(model => model.SenderName, new { @class = "text disablebg", @readonly = "readonly" })
        @Html.HiddenFor(model => model.SenderID)
        @Html.ValidationMessageFor(model => model.SenderName)
         </td>*@
    
           <td class="title">@Html.LabelFor(model => model.Remarks)</td>
        <td> @Html.TextBoxFor(model => model.Remarks, new { @class = "text disablebg", @readonly = "readonly" })
            @Html.ValidationMessageFor(model => model.Remarks)
        
         <input type="hidden" value="" name="hidProductBillItems" id="hidProductBillItems" />
    </tr>
    
    </table>
}
</div>
<div class="wp100">
<div id="ProductInBillItemsGrid" style="margin-top:20px" ></div>
</div>

<script type="text/javascript" src="@Url.Content("~/Content/js/ProductInBill/Detail.js")"></script>
<script type="text/javascript" src="@Url.Content("~/Content/js/formBase.js")"></script>

